<template>
  <div class="welcome-container">
    <h1 class="welcome-title">欢迎来到碳中和处理系统</h1>
    <p class="welcome-description" >在这里，我们一起为碳中和目标努力奋斗！</p>
    <el-button type="success" size="large" @click="goToLogin" class="login-button">
      立即登录
    </el-button>
  </div>
</template>

<script>
export default {
  name: "Welcome",
  methods: {
    goToLogin() {
      // 跳转到登录页面
      this.$router.push('/login');
    }
  }
}
</script>

<style scoped>
.welcome-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: url('../assets/login.png') no-repeat center center fixed;
  background-size: cover;
}

.welcome-title {
  font-size: 48px;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}

.welcome-description {
  font-size: 24px;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  margin-bottom: 40px;
}

.login-button {
  padding: 12px 30px;
  font-size: 18px;
}
</style>
